package xcmg.device.dao.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import xcmg.device.dao.entity.purchase.PurchasePlanDO;
import xcmg.device.service.vo.purchase.PurchasePlanVO;

import java.util.List;

@Mapper
public interface PurchasePlanMapper {

    int insert(PurchasePlanDO purchasePlanDo);

    int updateByBillNoAndMaterialsNo(PurchasePlanDO purchasePlanDO);

    List<PurchasePlanDO> list(PurchasePlanVO condition);

    int listCount(PurchasePlanVO condition);

    int count(@Param("billNo")String billNo, @Param("materialsNo")String materialsNo);
}
